import request from '@/utils/request'

// 查询运单扩展列表
export function listWaybillext(query) {
  return request({
    url: '/waybills/waybillext/list',
    method: 'get',
    params: query
  })
}

// 查询运单扩展详细
export function getWaybillext(wayBillId) {
  return request({
    url: '/waybills/waybillext/' + wayBillId,
    method: 'get'
  })
}

// 新增运单扩展
export function addWaybillext(data) {
  return request({
    url: '/waybills/waybillext',
    method: 'post',
    data: data
  })
}

// 修改运单扩展
export function updateWaybillext(data) {
  return request({
    url: '/waybills/waybillext',
    method: 'put',
    data: data
  })
}

// 删除运单扩展
export function delWaybillext(wayBillId) {
  return request({
    url: '/waybills/waybillext/' + wayBillId,
    method: 'delete'
  })
}
